$OpenBSD: patch-ogg_to_pcm_c,v 1.1.1.1 2011/06/13 20:33:19 kili Exp $
--- ogg_to_pcm.c.orig	Tue May 24 23:45:37 2011
+++ ogg_to_pcm.c	Tue May 24 23:46:22 2011
@@ -17,13 +17,15 @@
  *
  */
 
+#include <sys/param.h>
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
 #include <stdint.h>
 #include <errno.h>
-#if !defined(__APPLE__)
+#if !defined(__APPLE__) && !defined(BSD)
 /* Apple gets what it needs for malloc from stdlib.h */
 #include <malloc.h>
 #endif
